import http from "../../utils/http"

/**
 * 获取资产详情
 */
export function walletFn(params) {
  return http({
    url: "/api/wallet/index",
    data: params,
    forceLogin: true
  })
}

/**
 * 获取所有币种
 */
export function coinList(params) {
  return http({
    url: "/api/wallet/coin",
    data: params,
    forceLogin: true
  })
}

/**
 * 提币
 */
export function withdrawFn(params) {
  return http({
    url: "/api/wallet/withdraw",
    data: params,
    forceLogin: true
  })
}

/**
 * 划转
 */
 export function transferFn(params) {
  return http({
    url: "/api/wallet/transfer",
    data: params,
    forceLogin: true
  })
}

/**
 * 币资产记录
 */
export function listFn(params){
  return http({
    url: '/api/memberaccount/page',
    data: params,
    forceLogin: true
  })
}

export function walletCoinLog(params){
    return http({
        url: '/api/wallet/coinLog',
        data: params,
        forceLogin: true
    })
}


/**
 *兑换详情
 */
export function exchangeIndex(params) {
  return http({
    url: '/api/wallet/exchangeIndex',
    data: params,
    forceLogin: true
  })
}

/**
 * 兑换
 */
export function exchange(params) {
  return http({
    url: '/api/wallet/exchange',
    data: params,
    forceLogin: true
  })
}

/**
 * 积分列表
 */
export function pointsArr(params) {
  return http({
    url: '/api/memberaccount/credit',
    data: params,
    forceLogin: true
  })
}
